package com.example.newstest.callback;



import com.example.newstest.news.bean.heardline.HeardLineData;
import com.example.newstest.news.bean.newsentity.NewsItemEntity;
import com.example.newstest.pic.bean.PicItemEntity;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by Administrator on 2017/1/14.
 */
public interface NewsService {
    @GET("app/newstoppic.aspx?")
    Call<List<HeardLineData>> getFristHeardLineList();
    //app/newslist.aspx?tid=0&minId=0&maxId=0&ver=2.2&temp=1464423764091
    @GET("app/newslist.aspx?&maxId=0&ver=2.2")
    Call<List<NewsItemEntity>> getNewsItemList(@Query("tid") int tid, @Query("minId") String minId);
    // http://m.mydrivers.com/app/newstoppic.aspx?t=168
    @GET("app/newstoppic.aspx?")
    Call<List<HeardLineData>> getSecondHrardLineList(@Query("t") int t);
    //http://m.mydrivers.com/app/Newslist.aspx?hd=1&minId=0&maxId=515388&ver=2.2&temp=1484575812864
   @GET("app/Newslist.aspx?&ver=2.2")
   Call<List<NewsItemEntity>> getTestItemList(@Query("hd") int hd, @Query("temp") String temp, @Query("minId") String minId);
    //http://m.mydrivers.com/app/newspics.aspx?minId=0&maxId=515987&temp=1484598267451
    @GET("app/newspics.aspx?&maxId=0")
  Call<List<PicItemEntity>> getPicItemList(@Query("temp") String temp, @Query("minId") String minId);
}
